﻿@using Web.Model;
@using Web.HelperClasses.AvatarService

@helper Small(Project project, string imageClass, string id = null)
	{
	string url = project.ProjectAvatar != null ? project.ProjectAvatar.Small.OriginalSizeUrl : ProjectAvatarService.NoAvatarSmall;
	string alt = project.Name;
    <img src="@url" alt="@alt" class="@imageClass" @(id != null ? "id=\"" + id + "\"" : "")/>
}

@helper Large(Project project, string imageClass, string id = null)
{
    string url = project.ProjectAvatar != null ? project.ProjectAvatar.Large.OriginalSizeUrl : ProjectAvatarService.NoAvatarLarge;
	string alt = project.Name;
    <img src="@url" height = "192" alt="@alt" class="@imageClass" @(id != null ? "id=\"" + id + "\"" : "")/>
} 